<?
  if(PMA_USR_BROWSER_AGENT == 'IE')
  {
    header('Content-Type: application/octetstream');
    header('Content-Disposition: inline; filename="'.$file.'"');
    header("Content-Transfer-Encoding: binary");
    header('Expires: 0');
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: public');
  }
  else {
    if(PMA_USR_BROWSER_AGENT == 'OPERA') {
      header('Content-Type: application/octetstream');
    }
    else {
      header('Content-Type: application/octet-stream');
    }
    header('Content-Disposition: attachment; filename="'.$file.'"');
    header("Content-Transfer-Encoding: binary");
    header('Expires: 0');
    header('Pragma: no-cache');
  }
?>